package org.gd.hellojaxb.privat24.credit;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "mes")
@XmlAccessorType(XmlAccessType.NONE)
public class CreditStatementsRequest {

    @XmlRootElement(name = "credit")
    @XmlAccessorType(XmlAccessType.NONE)
    private static final class Credit {
        @XmlAttribute(name = "type")
        private String type;
        @XmlAttribute(name = "creditId")
        private String creditId;
        @XmlAttribute(name = "baseNum")
        private String baseNum;
        @XmlAttribute(name = "date1")
        private String date1;
        @XmlAttribute(name = "date2")
        private String date2;

        private Credit() {
            this.type = "";
            this.creditId = "";
            this.baseNum = "";
            this.date1 = "";
            this.date2 = "";
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getCreditId() {
            return creditId;
        }

        public void setCreditId(String creditId) {
            this.creditId = creditId;
        }

        public String getBaseNum() {
            return baseNum;
        }

        public void setBaseNum(String baseNum) {
            this.baseNum = baseNum;
        }

        public String getDate1() {
            return date1;
        }

        public void setDate1(String date1) {
            this.date1 = date1;
        }

        public String getDate2() {
            return date2;
        }

        public void setDate2(String date2) {
            this.date2 = date2;
        }
    }

    @XmlAttribute(name = "type")
    @SuppressWarnings("unused")
    private static final String type = "creditStatement";

    @XmlElement(name = "credit")
    private Credit credit;

    public CreditStatementsRequest() {
        credit = new Credit();
    }

    public String getType() {
        return credit.getType();
    }

    public CreditStatementsRequest setType(String type) {
        this.credit.setType(type);
        return this;
    }

    public String getCreditId() {
        return credit.getCreditId();
    }

    public CreditStatementsRequest setCreditId(String creditId) {
        this.credit.setCreditId(creditId);
        return this;
    }

    public String getBaseNum() {
        return credit.getBaseNum();
    }

    public CreditStatementsRequest setBaseNum(String baseNum) {
        this.credit.setBaseNum(baseNum);
        return this;
    }

    public String getDate1() {
        return credit.getDate1();
    }

    public CreditStatementsRequest setDate1(String date1) {
        credit.setDate1(date1);
        return this;
    }

    public String getDate2() {
        return credit.getDate2();
    }

    public CreditStatementsRequest setDate2(String date2) {
        this.credit.setDate2(date2);
        return this;
    }
}
